import org.molamil.acto.commands.CommandContext;
import org.molamil.acto.commands.cmd.AbstractCmd;
import org.molamil.acto.core.Logger;
import org.molamil.acto.commands.cmd.AbstractValidatorCmd;
import org.molamil.acto.commands.CommandRequest;
import org.molamil.acto.commands.CommandResult;

/**
 * @author Jorge Hernandez
 */
class org.molamil.acto.commands.cmd.AbstractRemoteCmd extends AbstractValidatorCmd {
	
	
	// Properties
	
	private static var log:Logger = Logger.getLogger("AbstractRemoteCmd");
	
	
	// Constructor
	
	public function AbstractRemoteCmd(context:CommandContext) {
		super(context);
	}
	
	
	// Functions
	
	public function execute(request:CommandRequest):CommandResult {
		
		log.debug("execute()");
		
		_result = super.execute(request);
		
		return _result;
		
	}
	
	private function onStatus(response:Object):Object {
		log.warning("Abstract onStatus to be implemented");
		return null;
	}
	
	private function onFault(response:Object):Object {
		log.warning("Abstract onFault to be implemented");
		return null;
	}
	
	
	
}
